import request from '@/utils/request';
import store from '@/store'


// 新建实验
export function addExptAPI(data) {
    return request({
        url: 'addExpt',
        method: 'post',
        data: data
    })
}

// 获取实验列表
export function getExptListAPI(params) {
    return request({
        url: '/getExptList',
        method: 'get',
        params: params
    })
}


// 获取用户列表 userList

export function getuserListAPI(params) {
    return request({
        url: 'userList',
        method: 'get',
        params: params
    })
}

// 实验定义
 
export function exptDefineAPI(data) {
    return request({
        url: 'exptDefine',
        method: 'post',
        data: data
    })
}

// 根据实验id获取实验用户

export function getUserListByExptIdAPI(params) {
    return request({
        url: '/getUserListByExptId',
        method: 'get',
        params: params
    })
}

// 根据实验id获取实验阵营和其内容
export function getCampListByExptIdAPI(params) {
    return request({
        url: '/getCampListByExptId',
        method: 'get',
        params: params
    })
}